package com.yhl.vocation.service;

import com.yhl.vocation.entity.pojo.Vacation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yhl.vocation.entity.vo.VacationVo;

import java.util.Date;
import java.util.List;

/**
*
*/
public interface VacationService extends IService<Vacation> {

    boolean create(String openid, Date starts, Date ends, String type, String description);

    List<Vacation> listByOpenId(String openid);

    boolean destory(Integer id ,String openid, String description);

    List<VacationVo> listVocation(String id, String type);

    boolean updateVacation(String id, String type);
}
